class TiposController < ApplicationController
  active_scaffold :tipo
#  # GET /tipos
#  # GET /tipos.xml
#  def index
#    @tipos = Tipo.find(:all)
#
#    respond_to do |format|
#      format.html # index.rhtml
#      format.xml  { render :xml => @tipos.to_xml }
#    end
#  end
#
#  # GET /tipos/1
#  # GET /tipos/1.xml
#  def show
#    @tipo = Tipo.find(params[:id])
#
#    respond_to do |format|
#      format.html # show.rhtml
#      format.xml  { render :xml => @tipo.to_xml }
#    end
#  end
#
#  # GET /tipos/new
#  def new
#    @tipo = Tipo.new
#  end
#
#  # GET /tipos/1;edit
#  def edit
#    @tipo = Tipo.find(params[:id])
#  end
#
#  # POST /tipos
#  # POST /tipos.xml
#  def create
#    @tipo = Tipo.new(params[:tipo])
#
#    respond_to do |format|
#      if @tipo.save
#        flash[:notice] = 'Tipo was successfully created.'
#        format.html { redirect_to tipo_url(@tipo) }
#        format.xml  { head :created, :location => tipo_url(@tipo) }
#      else
#        format.html { render :action => "new" }
#        format.xml  { render :xml => @tipo.errors.to_xml }
#      end
#    end
#  end
#
#  # PUT /tipos/1
#  # PUT /tipos/1.xml
#  def update
#    @tipo = Tipo.find(params[:id])
#
#    respond_to do |format|
#      if @tipo.update_attributes(params[:tipo])
#        flash[:notice] = 'Tipo was successfully updated.'
#        format.html { redirect_to tipo_url(@tipo) }
#        format.xml  { head :ok }
#      else
#        format.html { render :action => "edit" }
#        format.xml  { render :xml => @tipo.errors.to_xml }
#      end
#    end
#  end
#
#  # DELETE /tipos/1
#  # DELETE /tipos/1.xml
#  def destroy
#    @tipo = Tipo.find(params[:id])
#    @tipo.destroy
#
#    respond_to do |format|
#      format.html { redirect_to tipos_url }
#      format.xml  { head :ok }
#    end
#  end
end
